#include <iostream>
#include <sys/types.h>
#include <signal.h>


using namespace std;
void Usage(const char* argv)
{
    cout << argv << " pid " << "sig" << endl;
}

int main(int argc, const char* argv[])
{
    if(argc != 3)
    {
        Usage(argv[0]);
    }
    else{
        int n = kill(stoi(argv[1]), stoi(argv[2]));
        if(n == -1)
        {
            perror("kill fail");
            return -1;
        }
    }
    return 0;
}